﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using
using NetBay.Core.BusinessEntities;
using Rio.Doc.Business.Repository.Translator;
using Rio.Doc.DataAccess;
#endregion

namespace Rio.Doc.Business.Repository
{
    /// <summary>
    /// Group Repository
    /// </summary>
    public class GroupRepository : GroupDer
    {
        public override void SetOrganizationList(long p_lUserId)
        {
            OrganizationList = OrganizationTranslator.TranslateOrganization(DA_Organization.GetOrganizationByGroup(Identifier));
        }

        public override void SetItemRightsList(long p_lUserId)
        {
            ItemRightsList = ItemRightsTranslator.TranslateItemRights(DA_ItemRights.GetItemRightsByGroup(p_lUserId, Identifier));
        }

        public override void SetFolderTypeRightList(long p_lUserId)
        {
            FolderTypeRigthList = FolderTypeTranslator.TranslateFolderType(p_lUserId, DA_FolderType.GetFolderTypeRightByGroup(p_lUserId, Identifier));
        }
    }


}
